//
//  SignEncrypt.h
//  PANetLibrary
//
//  Created by xyh on 8/1/12.
//  Copyright (c) 2012 pingan. All rights reserved.
//  功能：1、对字符串进行加签

#import <Foundation/Foundation.h>

@interface SignEncrypt : NSObject

//使用公钥对字符串进行加密,调用方法：[SignEncrypt encryptTheData:@"Hello Tiger!!!" P7bPath:p7bFile]
+ (NSString *)encryptTheData:(NSString *)plainText P7bPath:(NSString*)p7bPath;

//使用私钥对字符串进行加密,调用方法：[SignEncrypt signTheData:@"Hello Tiger!!!" P12Path:p12File P12Password:@"p12Password"]
+ (NSString *)signTheData:(NSString *)plainText P12Path:(NSString*)path P12Password:(NSString*)password;

//使用公钥对字符串进行RSA加密,调用方法：[SignEncrypt stringByRsaEncodingWith:@"password" WithKey:"公钥"]
+ (NSString*)stringByRsaEncodingWith:(NSString*)sourceString WithKey:(char*)key;

/*3Des加密扩展*/
+(NSString*)stringBy3DesEncoding:(NSString*)string;

/*3Des解密扩展*/
+(NSString*)stringBy3DesDecoding:(NSString*)string;

@end
